#pragma once
#include <iostream>
#include <cerrno>
#include <cstring>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <iostream>
#include <string>
using namespace std;
#include<fcntl.h>
#include<cstdio>
#include<cassert>

#define NUM 1024

const std::string fifoname = "./fifo";
uint32_t mode = 0666;  